#import <UIKit/UIKit.h>

#import "framework/FWListView.h"

#import "PITaskStatus.h"
#import "PICommon.h"
#import "PITask.h"


@class LITableView;
@class PIPlugin;
@class FWApplication;
@class FWColorIconView;


@interface PITaskView : FWListView
{
    kPITaskViewStyle viewStyle;
}

@property (retain) FWIconDotView* action;
@property (retain) UIImageView* flag;
@property (retain) FWColorIconView* tree;
@property (retain) FWColorIconView* overdue;
@property (retain) UIImageView* context;
@property (retain) FWColorIconView* native;


- (id)initWithFrame:(CGRect)frame theme:(LITheme*)theme application:(FWApplication*)appl;
- (void)dealloc;

- (void)setViewForTask:(PITask*)task theme:(LITheme*)theme application:(FWApplication*)app style:(kPITaskViewStyle)style showShortDates:(ShortDatesOptions)showShortDates showDetailLine:(BOOL)showDetailLine showIcons:(BOOL)showIcons showEmoji:(BOOL)showEmoji showOverdue:(BOOL)showOverdue showChildIcons:(BOOL)showChildIcons lowColour:(BOOL)lowColour sourceIcon:(ShowSourceIconOptions)sourceIcon;

@end
